<?
 class comment extends add_module{
  function _add_comm_schedule($side,$mod,$oper,$id){   if(isset($id)){   	$id=$this->model->get_info("id","ns_tree","name",$id);    $tmp_e=$this->model->return_comment($id,"email");
    $tmp_n=$this->model->return_comment($id,"nick");
    $tmp_t=$this->model->return_comment($id,"text");

    if(!empty($tmp_e)){


     foreach($tmp_n AS $key=>$value){      $tmp['date']=$value['date'];      $tmp['nick']=$value['text'];
      $tmp['email']=$tmp_e[$key]['text'];
      $tmp['text']=$tmp_t[$key]['text'];      $ret['body_comment'].=$this->view->view("templates/site/tpl_module/comment/comment_form_output.tpl",$tmp,true);
     }



     return $this->view->view("templates/site/tpl_module/comment/comment_form_input.tpl",$ret,true);
    }
   }

  }



  protected function add_comm_options(){  	echo"option_start";
  }

  function __call($method, $params){
   		return $this->show_404($method, $params);
   		}

   		function _returnPath($module,$func,$link){
          return $module."/".$link;
   		}

   		function _returnNLink($id){
         return $this->model->get_text($id);
   		}

 }
 ?>